<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div id="app"></div>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    
    <script>
        var MyComponent = Vue.extend({
            template: '<div>我是vue的组件实例，有看到吗？</div>'
        })

        Vue.component('my-component', {
            template: '<div>A custom component!</div>'
        })
        var myComponentInstance = new MyComponent()
        console.log(myComponentInstance);
        
    </script>
</body>
</html>